<template>
	<div>
		<router-link to="/home">首页</router-link>
		<router-link to="/login">登录</router-link>
		<router-link to="/register">注册</router-link>
		<input type="text" v-model="keywords">
		<button type="button" @click="go_search()">查询</button>
	</div>
</template>

<script>
	export default {
		name: 'Header',
		data(){
			return {
				keywords:'123'
			}
		},
		methods: {
			go_search(){
				this.$router.push({
					name:'Search',
					params:{
						keywords:this.keywords
					}
				});
			}
		}
	}
</script>

<style>
</style>
